package com.config.tomcat.value;

import jakarta.servlet.ServletException;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
import org.apache.catalina.valves.ValveBase;

import java.io.IOException;

/**
 * @author chengyadong
 * @date 2023/9/21 16:14
 * @description conetxt组件阀值测试
 */
public class ContextValueTest extends ValveBase {
	@Override
	public void invoke(Request request, Response response) throws IOException, ServletException {
		System.out.println("contextValue:="+request.getMethod());
		//调用下一个阀值
        getNext().invoke(request,response);
	}
}
